<?php

/**
 * sfGuardFormSignin for sfGuardAuth signin action
 *
 * @package    sfDoctrineGuardPlugin
 * @subpackage form
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: sfGuardFormSignin.class.php 23536 2009-11-02 21:41:21Z Kris.Wallsmith $
 */
class sfGuardFormSignin extends BasesfGuardFormSignin
{
  /**
   * @see sfForm
   */
  public function configure()
  {
        
        $this->widgetSchema->getFormFormatter()->setErrorListFormatInARow('<ul class="ui-form-errors">%errors%</ul>');
        $this->widgetSchema->getFormFormatter()->setErrorListFormatInARow('<ul class="ui-form-errors">%errors%</ul>');
        $this->widgetSchema->getFormFormatter()->setErrorRowFormatInARow('<li class="ui-form-error ui-state-error ui-corner-all "><span class="ui-icon ui-icon-16 ui-icon-error"></span>%error%</li>');
        $this->widgetSchema->getFormFormatter()->setNamedErrorRowFormatInARow('<li class="ui-form-error ui-state-error ui-corner-all ">%name%: %error%</li>');
        $this->widgetSchema->setLabels(array(
            'username'      => 'Benutzername',
            'password'       => 'Passwort',
            'remember'       => 'Anmeldung merken'
        ));
        
        $this->widgetSchema->setHelps(array(
            'username'      => 'Gib hier Deinen Benutzernamen, oder Deine E-Mail Adresse ein.',
            'password'       => 'Gib hier Dein Passwort ein.'
        ));  
  }
}
